package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_AssembleByHandItem", catalog="Id")
public class TccAssembleByHandItem extends BaseEntity<TccAssembleByHandItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="SubBomNum", nameJava="subBomNum", typeDataBase="decimal")
	private BigDecimal subBomNum;
	@YsField(nameDataBase="SubNeedNum", nameJava="subNeedNum", typeDataBase="decimal")
	private BigDecimal subNeedNum;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="SubChw", nameJava="subChw", typeDataBase="varchar")
	private String subChw;
	@YsField(nameDataBase="ChwNum", nameJava="chwNum", typeDataBase="decimal")
	private BigDecimal chwNum;
	@YsField(nameDataBase="UsedNum", nameJava="usedNum", typeDataBase="decimal")
	private BigDecimal usedNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccAssembleByHandItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccAssembleByHandItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TccAssembleByHandItem setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public BigDecimal getSubBomNum() {
		return subBomNum;
	}
	public TccAssembleByHandItem setSubBomNum(BigDecimal subBomNum) {
		this.subBomNum = subBomNum;
		return this;
	}
	public BigDecimal getSubNeedNum() {
		return subNeedNum;
	}
	public TccAssembleByHandItem setSubNeedNum(BigDecimal subNeedNum) {
		this.subNeedNum = subNeedNum;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccAssembleByHandItem setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public String getSubChw() {
		return subChw;
	}
	public TccAssembleByHandItem setSubChw(String subChw) {
		this.subChw = subChw;
		return this;
	}
	public BigDecimal getChwNum() {
		return chwNum;
	}
	public TccAssembleByHandItem setChwNum(BigDecimal chwNum) {
		this.chwNum = chwNum;
		return this;
	}
	public BigDecimal getUsedNum() {
		return usedNum;
	}
	public TccAssembleByHandItem setUsedNum(BigDecimal usedNum) {
		this.usedNum = usedNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccAssembleByHandItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccAssembleByHandItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccAssembleByHandItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccAssembleByHandItem tccAssembleByHandItem(
		String pbid,
		String subCode,
		BigDecimal subBomNum,
		BigDecimal subNeedNum,
		Long stockControlId,
		String subChw,
		BigDecimal chwNum,
		BigDecimal usedNum,
		Integer status
			) {
		TccAssembleByHandItem entity = new TccAssembleByHandItem();
		entity.setPbid(pbid);
		entity.setSubCode(subCode);
		entity.setSubBomNum(subBomNum);
		entity.setSubNeedNum(subNeedNum);
		entity.setStockControlId(stockControlId);
		entity.setSubChw(subChw);
		entity.setChwNum(chwNum);
		entity.setUsedNum(usedNum);
		entity.setStatus(status);
		return entity;
	}
}